import Vue from 'vue'
import App from './App'
import store from '@/store';
import "./directives/auth.js";


Vue.config.productionTip = false

import uView from "uview-ui";
Vue.use(uView);

let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);



App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})

//http拦截器
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)

// http接口API
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)

// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare)

app.$mount()
